]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Remove unimplemented 'activate-discrete-gpu'
authorBastien Nocera <hadess@hadess.net>
Mon, 21 Oct 2019 10:48:43 +0000 (12:48 +0200)
committerBastien Nocera <hadess@hadess.net>
Thu, 12 Dec 2019 16:19:41 +0000 (17:19 +0100)
It was added in commit 009d021 but not advertised, and likely not used
by an application since then.

See: https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/781

js/ui/appDisplay.js

index a39211f025eb43acbaeb255a8af0d3c6b750e97a..95976efae3aa2f1454758a3dda2ad914e66c47cd 100644 (file)
@@ -2576,8 +2576,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
             }
 
             if (discreteGpuAvailable &&
-                this._source.app.state == Shell.AppState.STOPPED &&
-                !actions.includes('activate-discrete-gpu')) {
+                this._source.app.state == Shell.AppState.STOPPED) {
                 this._onDiscreteGpuMenuItem = this._appendMenuItem(_("Launch using Dedicated Graphics Card"));
                 this._onDiscreteGpuMenuItem.connect('activate', () => {
                     this._source.animateLaunch();
@@ -2590,8 +2589,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
                 let action = actions[i];
                 let item = this._appendMenuItem(appInfo.get_action_name(action));
                 item.connect('activate', (emitter, event) => {
-                    if (action == 'new-window' ||
-                        action == 'activate-discrete-gpu')
+                    if (action == 'new-window')
                         this._source.animateLaunch();
 
                     this._source.app.launch_action(action, event.get_time(), -1);